package com.blacktry.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author blackTry
 * @since 2021-01-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Book对象", description="")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "图书号")
    @TableId(value = "book_id", type = IdType.AUTO)
    private Long bookId;

    @ApiModelProperty(value = "书名")
    private String name;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "出版社")
    private String publish;

    @ApiModelProperty(value = "空闲数量")
    private Integer leisure;

    @ApiModelProperty(value = "总数量")
    private Integer sum;

    @ApiModelProperty(value = "ISBN")
    @TableField("ISBN")
    private String isbn;

    @ApiModelProperty(value = "简介")
    private String introduction;

    @ApiModelProperty(value = "语言")
    private String language;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "出版日期")
    private Date pubdate;

    @ApiModelProperty(value = "分类号")
    private Integer classId;

    @ApiModelProperty(value = "书架号")
    private Integer pressmark;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @ApiModelProperty(value = "喜欢人数")
    private Integer love;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
